package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * 会员账户信息
 * Created by Ellis on 26/05/2017.
 */
public class AccountInfo extends BaseModel<AccountInfo> {

    /** 会员账户ID*/
    public String member_account_id="";
    /** 银行账号名称*/
    public String bank_account_name="";
    /** 银行账号*/
    public String bank_account_number="";
    /** 银行ID*/
    public String bank_id="";
    /** 银行名名称*/
    public String bank_name="";
    @Override
    public AccountInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            member_account_id = jsonObject.optString("member_account_id");
            bank_account_name = jsonObject.optString("bank_account_name");
            bank_account_number = jsonObject.optString("bank_account_number");
            bank_name = jsonObject.optString("bank_name");
            bank_id= jsonObject.optString("bank_id");
            return this;
        }
        return null;
    }
}
